package com.zju.DoctorGo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zju.DoctorGo.dto.UserEditPasswordDTO;
import com.zju.DoctorGo.dto.UserUnregisterDTO;
import com.zju.DoctorGo.entity.User;
import com.zju.DoctorGo.dto.UserLoginDTO;

import java.util.Map;

public interface UserService extends IService<User> {
    /**
     * 根据用户名查询用户
     * @return
     */
    User login(UserLoginDTO userLoginDTO);

    void editPassword(UserEditPasswordDTO userEditPasswordDTO);

    void unregister(UserUnregisterDTO userUnregisterDTO);

    User getByUserName(String userName);

    Map<String, Object> getVerifyCode(String targetEmailBox);

    void veryfyCode(Map<String, Object> requestMap, String code);

    void register(User user);
}
